using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.Publishing.WebControls;
using Microsoft.SharePoint.Publishing.Fields;

namespace SharePointing.Features.MetaTags.Controls
{
    
    public class MetaTagFieldControl : BaseFieldControl
    {
        /// <summary>
        /// Default Constructor for the MetaTag Control
        /// </summary>
        public MetaTagFieldControl()
        {
        }

    }

    public class MetaTagEditor : WebControl
    {


        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            // This ensures that the TextBox child control receives
            // its postback.
            EnsureChildControls();
        }

        protected override void CreateChildControls()
        {
            SimpleToolbar MetaTagOptionsToolbar = new SimpleToolbar();
            MetaTagOptionsToolbar.ID = "ToolBar";

            this.Controls.Add(MetaTagOptionsToolbar);

            // Add a Toolbar Button for editing the MetaTags
            MetaTagOptionsToolbar.AddToolbarButton(
                "EditSiteMetaTags",
                "Edit Meta Tags",
                "script:goeshere",
                "Edit the Meta Tags for the current Site",
                "/_layouts/IMAGES/edit.gif");

            // Add a refresh button to perform a basic postback to
            // to update the MediaUrl rendering.
            MetaTagOptionsToolbar.AddToolbarButton(
                "EditMetaTagTypes",
                "Edit Meta Tag Types",
                this.Page.ClientScript.GetPostBackEventReference(this, String.Empty),
                  "Edit the Meta Tag Types defined for this Site",
                  "/_layouts/IMAGES/edit.gif");

            // If there is a media file URL, this code creates
            // the media player markup.
            //this.Controls.Add(this.mediaPlayerOutput);
        }
    }
}
